using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Workspace
{
    /// <summary>
    /// <para>Create Folder</para>
    /// <para>Creates a folder in the specified location.</para>
    /// <para>在指定位置创建文件夹。</para>
    /// </summary>    
    [DisplayName("Create Folder")]
    public class CreateFolder : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateFolder()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_out_folder_path">
        /// <para>Folder Location</para>
        /// <para>The disk location where the folder is created.</para>
        /// <para>创建文件夹的磁盘位置。</para>
        /// </param>
        /// <param name="_out_name">
        /// <para>Folder Name</para>
        /// <para>The folder to be created.</para>
        /// <para>要创建的文件夹。</para>
        /// </param>
        public CreateFolder(object _out_folder_path, object _out_name)
        {
            this._out_folder_path = _out_folder_path;
            this._out_name = _out_name;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Create Folder";

        public override string CallName => "management.CreateFolder";

        public override List<string> AcceptEnvironments => ["scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_out_folder_path, _out_name, _out_folder];

        /// <summary>
        /// <para>Folder Location</para>
        /// <para>The disk location where the folder is created.</para>
        /// <para>创建文件夹的磁盘位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Folder Location")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_folder_path { get; set; }


        /// <summary>
        /// <para>Folder Name</para>
        /// <para>The folder to be created.</para>
        /// <para>要创建的文件夹。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Folder Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_name { get; set; }


        /// <summary>
        /// <para>Output Folder</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Folder")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_folder { get; set; }


        public CreateFolder SetEnv(object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}